<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="../includes/importer.jsp"%>
<!doctype html>
<html>

<head>
<ht:head />
<script type="text/javascript">
</script>
</head>
<body>
	<br />
	<div id="search-menu">
		<br style="clear: left" />
	</div>
	<div class="queryContainer">
		<form name="queryForm" id="queryForm" action="list" method="get">
			<table>
				<tr>
					<td width="100">商户名称：</td>
					<td width="150"><input type="text" name="name"
						value="${param.name}" class="txt" style="width: 150px" /></td>
					<td width="100">商户编号：</td>
					<td width="300"><input id="ordernumber" type="text" name="id"
						value="${param.id}" class="txt validate-number"
						style="width: 100px" />
					<td>区域:</td>
					<td><input type="text" name="areaName"
						value="${param.areaName}" class="txt" /></td>

				</tr>
				<tr>
					<td width="70">创建时间：</td>
					<td><input type="text" id="inputStartTime"
						name="inputStartTime" value="${param.inputStartTime}"
						class="txt Wdate" readOnly
						onfocus="WdatePicker({vel:'beginTime',realDateFmt:'yyyyMMdd',maxDate:'#F{$dp.$D(\'inputEndTime\')||\'2050-10-01\'}'})" />
						<input type="hidden" name="beginTime" id="beginTime"
						value="${param.beginTime}" /> 至 <input type="text"
						id="inputEndTime" name="inputEndTime"
						value="${param.inputEndTime}" class="txt Wdate" readOnly
						onfocus="WdatePicker({vel:'endTime',realDateFmt:'yyyyMMdd',minDate:'#F{$dp.$D(\'inputStartTime\')}',maxDate:'2050-10-01'})" />
						<input type="hidden" name="endTime" id="endTime"
						value="${param.endTime}" /></td>
					<td>&nbsp; <ct:btn type="search" />
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div class="container">
		<br />
		<h3>商户列表</h3>
		<div class="mainbox">
			<c:if test="${not empty pageData}">
				<table class="datalist fixwidth">
					<tr>
						<th nowrap="nowrap" width="80">商户编号</th>
						<th nowrap="nowrap" width="150">商户名称</th>
						<th nowrap="nowrap" width="100">区域</th>
						<th nowrap="nowrap" width="70">审核状态</th>
						<th nowrap="nowrap" width="150">创建时间</th>
						<th nowrap="nowrap">操作</th>
					</tr>
				<c:forEach items="${pageData.data}" var="item">
						<tr>
							<td nowrap="nowrap">${item.id}</td>
							<td nowrap="nowrap" class="ellipsis"><ahref="storeView/${item.id}">${item.name }</a></td>
							<td nowrap="nowrap">${item.areaName}</td>
							<td nowrap="nowrap">${statusMap[item.status] }</td>
							<td nowrap="nowrap"><ct:time source="${item.createTime }" /></td>
							<td nowrap="nowrap">
								<c:if test="${item.status == 1||item.status == 2 }">
									<ct:display model="store_audit_list" btn="audit_btn">
										<a href="storeAudit?id=${item.id}">审核</a>
									</ct:display>
								</c:if>
							</td>
						</tr>
				</c:forEach>
				</table>

				<ht:page pageData="${pageData}" />

			</c:if>
			<c:if test="${empty pageData.data}">
				<div class="note">
					<p class="i">目前没有相关记录!</p>
				</div>
			</c:if>
		</div>

	</div>

</body>
</html>